Skip to main content
Version: 1.x.x

UseTrackedStateProps


import { UseTrackedStateProps } from "@hyper-fetch/react"

Description

Defined in helpers/use-tracked-state/use-tracked-state.types.ts:13

Preview

type UseTrackedStateProps<T> = {
command: T;
deepCompare: boolean | typeof isEqual;
defaultCacheEmitting: boolean;
dependencyTracking: boolean;
dispatcher: Dispatcher;
initialData: ClientResponseType<ExtractResponse<T>, ExtractError<T>> | null;
logger: LoggerType;
}

Structure

{
command: T;
deepCompare: boolean | typeof isEqual;
defaultCacheEmitting: boolean;
dependencyTracking: boolean;
dispatcher: Dispatcher;
initialData: [\GenericDataType\ | \null\, \GenericErrorType\ | \null\, \number\ | \null\] | null;
logger: Record<LoggerLevelType, (message: LoggerMessageType, ...additionalData: LoggerMessageType[]) => void>;
}